Skip to content

Commit e9b8ae3

Browse files
Merge pull request #907 from themesberg/datepicker-instance
Datepicker instance
2 parents 9d5e11d + 1d76b8f commit e9b8ae3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1162
-421
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ The quickest way to get started working with Flowbite is to simply include the C
9494
Require the following minified stylesheet inside the `head` tag:
9595

9696
```html
97-
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.css" rel="stylesheet" />
97+
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.0/flowbite.min.css" rel="stylesheet" />
9898
```
9999

100100
And include the following javascript file before the end of the `body` tag:
101101

102102
```html
103-
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.js"></script>
103+
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.0/flowbite.min.js"></script>
104104
```
105105

106106
### Bundled JavaScript
@@ -437,7 +437,7 @@ Flowbite is an open source collection of UI components built with the utility cl
437437
</a>
438438
</td>
439439
<td width="33.3333%">
440-
<a href="https://flowbite.com/docs/plugins/datepicker/">
440+
<a href="https://flowbite.com/docs/components/datepicker/">
441441
<img alt="Tailwind CSS Datepicker" src="https://flowbite.s3.amazonaws.com/github/datepicker.jpg">
442442
</a>
443443
</td>

config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ enableInlineShortcodes: true
55

66
params:
77
homepage: "https://flowbite.com"
8-
current_version: 2.3.0
8+
current_version: 2.4.0
99
authors: Themesberg
1010
social_image_path: /docs/images/og-image.png
1111

content/components/clipboard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ requires_js: true
88

99
previous: Chat Bubble
1010
previousLink: components/chat-bubble/
11-
next: Device mockups
12-
nextLink: components/device-mockups/
11+
next: Datepicker
12+
nextLink: components/datepicker/
1313
---
1414

1515
The copy to clipboard component allows you to copy text, lines of code, contact details or any other data to the clipboard with a single click on a trigger element such as a button. This component can be used to copy text from an input field, textarea, code block or even address fields in a form element.

content/components/datepicker.md

Lines changed: 683 additions & 0 deletions
Large diffs are not rendered by default.

content/components/device-mockups.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description: Use the device mockups component to add content and screenshot prev
55
group: components
66
toc: true
77

8-
previous: Clipboard
9-
previousLink: components/clipboard/
8+
previous: Datepicker
9+
previousLink: components/datepicker/
1010
next: Drawer
1111
nextLink: components/drawer/
1212
---

content/components/dropdowns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Make sure to include <a href="{{< ref "getting-started/quickstart" >}}">Flowbite
1818

1919
## Dropdown example
2020

21-
If you want to show a dropdown menu when clicking on an element make sure that you add the `data-dropdown-toggle="dropdownId"` data attribute to the element (ie. a button) that will trigger the dropdown menu.
21+
If you want to show a dropdown menu when clicking on an element make sure that you add the data attribute `data-dropdown-toggle="dropdownId"` to the element (ie. a button) that will trigger the dropdown menu.
2222

2323
The `dropdownId` is the id of the dropdown menu element.
2424

content/forms/number-input.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ This component can be used to set a currency value inside a form field when you
260260

261261
## Credit card input
262262

263-
Use this component to set the information needed when making an online transaction with a credit card by adding the card number, expiration date, and security code. The component uses the [Flowbite Datepicker](https://flowbite.com/docs/plugins/datepicker/).
263+
Use this component to set the information needed when making an online transaction with a credit card by adding the card number, expiration date, and security code. The component uses the [Flowbite Datepicker](https://flowbite.com/docs/components/datepicker/).
264264

265265
{{< example id="zip-code-number-input" github="components/number-input.md" show_dark=true iframeHeight="540" >}}
266266
<form class="max-w-sm mx-auto">
@@ -349,7 +349,7 @@ document.querySelectorAll('[data-focus-input-init]').forEach(function(element) {
349349

350350
## Number input with slider
351351

352-
This example can be used to set the value of a number input field by sliding the range slider component or by typing the value in the input field. The component uses the [Flowbite Range Slider](https://flowbite.com/docs/plugins/range-slider/).
352+
This example can be used to set the value of a number input field by sliding the range slider component or by typing the value in the input field. The component uses the [Flowbite Range Slider](https://flowbite.com/docs/components/range-slider/).
353353

354354
{{< example id="zip-code-number-input" github="components/number-input.md" show_dark=true iframeHeight="290" disable_init_js="true" javascript=`
355355
// Get the elements

content/forms/timepicker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Use this example to show or hide the timepicker when clicking on an trigger elem
234234

235235
## Inline timepicker buttons
236236

237-
This is an advanced example that you can use to show the details of an event and select a date of the event based on the [Flowbite Datepicker](https://flowbite.com/docs/plugins/datepicker/) and select the time using a predefined set of time intervals based on checkbox elements.
237+
This is an advanced example that you can use to show the details of an event and select a date of the event based on the [Flowbite Datepicker](https://flowbite.com/docs/components/datepicker/) and select the time using a predefined set of time intervals based on checkbox elements.
238238

239239
{{< example id="timepicker-inline-example" github="components/timepicker.md" show_dark=true >}}
240240
<h2 class="text-xl text-gray-900 dark:text-white font-bold mb-2">Digital Transformation</h2>
@@ -376,7 +376,7 @@ This is an advanced example that you can use to show the details of an event and
376376

377377
## Modal with timepicker
378378

379-
Use this example to select a date and time inside of a modal component based on the [Flowbite Datepicker](https://flowbite.com/docs/plugins/datepicker/) and select a time interval using checkbox elements with predefined time values for event time scheduling.
379+
Use this example to select a date and time inside of a modal component based on the [Flowbite Datepicker](https://flowbite.com/docs/components/datepicker/) and select a time interval using checkbox elements with predefined time values for event time scheduling.
380380

381381
{{< example id="timepicker-modal-example" github="components/timepicker.md" class="flex justify-center" show_dark=true iframeHeight="880" >}}
382382
<button type="button" data-modal-target="timepicker-modal" data-modal-toggle="timepicker-modal" class="text-gray-900 bg-white hover:bg-gray-100 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-gray-600 dark:bg-gray-800 dark:border-gray-700 dark:text-white dark:hover:bg-gray-700">

content/getting-started/blazor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ module.exports = {
219219

220220
```bash
221221
<!-- ... -->
222-
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.js"></script>
222+
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.0/flowbite.min.js"></script>
223223
</body>
224224
</html>
225225
```

content/getting-started/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ nextLink: getting-started/react/
1515

1616
We strive to keep a good accountability of all of the version changes that we make for the Flowbite library.
1717

18+
### v2.4.0
19+
20+
- the datepicker is now a core component of Flowbite and has API methods, events, and options
21+
- updated the documentation for the datepicker component and related integration guides
22+
- minor visual bug fixes and improvements
23+
1824
### v2.3.0
1925

2026
- added new "copy to clipboard" component and examples

0 commit comments

Comments
 (0)