Skip to content

Commit

Permalink
Add support for range input (#46)
Browse files Browse the repository at this point in the history
* Working range date parsing with Chrono

* Add error handling when inputting range
Allow 1-2 dates
Styling fixes for the docs page
More tests

* Styling and docs tweaks

* Add NPM version badge
  • Loading branch information
fymmot committed Jan 22, 2023
1 parent c210eeb commit bbd1a50
Show file tree
Hide file tree
Showing 12 changed files with 1,984 additions and 1,322 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-colts-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"inclusive-dates": patch
---

Add support for range input
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<img alt="Github test action status" src="https://github.com/fymmot/inclusive-dates/actions/workflows/test.yml/badge.svg" />
<!-- <img alt="Github publish action status" src="https://github.com/inclusive-dates-v2/actions/workflows/publish.yml/badge.svg" /> -->
<img alt="Github docs action status" src="https://github.com/fymmot/inclusive-dates/actions/workflows/docs.yml/badge.svg" />
<img alt="NPM version" src="https://img.shields.io/npm/v/inclusive-dates?color=informational">
</div>
</div>

Expand Down
10 changes: 9 additions & 1 deletion docs/css/bamboo.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
--b-link: #c7c7ff;
--b-btn-bg: #0000ff;
--b-btn-txt: #fff;
--b-focus: #eeff51;
--b-focus: #ffbf00;
}
*:focus-visible:not(inclusive-dates *) {
outline: 0.25rem solid var(--b-focus);
}

*,
Expand Down Expand Up @@ -266,6 +269,10 @@ textarea {
line-height: 1.125;
}

button:not(inclusive-dates button) {
outline-offset: 0.125rem;
}

select:not(.inclusive-dates-calendar__month-select),
input[type="text"]:not(inclusive-dates input) {
width: 100%;
Expand All @@ -282,6 +289,7 @@ input[type="text"]:not(inclusive-dates input) {
}
.skip-link:focus {
transform: translateY(0);
outline-offset: 0.125rem;
}

[type="color" i] {
Expand Down

1 comment on commit bbd1a50

@vercel
Copy link

@vercel vercel bot commented on bbd1a50 Jan 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

inclusive-dates – ./

inclusive-dates-git-main-fymmot.vercel.app
inclusive-dates.vercel.app
inclusive-dates-fymmot.vercel.app

Please sign in to comment.