-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into react-18-deprecations
- Loading branch information
Showing
73 changed files
with
4,980 additions
and
3,566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,6 @@ | |
}, | ||
"devDependencies": { | ||
"raw-loader": "^4.0.2", | ||
"sass": "^1.64.2" | ||
"sass": "^1.69.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
() => { | ||
const [startDate, setStartDate] = useState(new Date()); | ||
return ( | ||
<DatePicker | ||
showIcon | ||
selected={startDate} | ||
onChange={(date) => setStartDate(date)} | ||
icon="fa fa-calendar" | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
() => { | ||
const [startDate, setStartDate] = useState(new Date()); | ||
return ( | ||
<DatePicker | ||
showIcon | ||
selected={startDate} | ||
onChange={(date) => setStartDate(date)} | ||
icon={ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="1em" | ||
height="1em" | ||
viewBox="0 0 48 48" | ||
> | ||
<mask id="ipSApplication0"> | ||
<g fill="none" stroke="#fff" strokeLinejoin="round" strokeWidth="4"> | ||
<path strokeLinecap="round" d="M40.04 22v20h-32V22"></path> | ||
<path | ||
fill="#fff" | ||
d="M5.842 13.777C4.312 17.737 7.263 22 11.51 22c3.314 0 6.019-2.686 6.019-6a6 6 0 0 0 6 6h1.018a6 6 0 0 0 6-6c0 3.314 2.706 6 6.02 6c4.248 0 7.201-4.265 5.67-8.228L39.234 6H8.845l-3.003 7.777Z" | ||
></path> | ||
</g> | ||
</mask> | ||
<path | ||
fill="currentColor" | ||
d="M0 0h48v48H0z" | ||
mask="url(#ipSApplication0)" | ||
></path> | ||
</svg> | ||
} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
() => { | ||
const [startDate, setStartDate] = useState(new Date()); | ||
return ( | ||
<DatePicker | ||
selected={startDate} | ||
onChange={(date) => setStartDate(date)} | ||
holidays={[ | ||
{ date: "2023-08-15", holidayName: "India's Independence Day" }, | ||
{ date: "2023-12-31", holidayName: "New Year's Eve" }, | ||
{ date: "2023-12-25", holidayName: "Christmas" }, | ||
{ date: "2024-01-01", holidayName: "New Year's Day" }, | ||
{ date: "2023-11-23", holidayName: "Thanksgiving Day" }, | ||
{ date: "2023-12-25", holidayName: "Fake holiday" }, | ||
]} | ||
placeholderText="This display holidays" | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# `calendar_icon` (component) | ||
|
||
| name | type | default value | description | | ||
| ----------- | --------------------- | ------------- | ----------- | | ||
| `className` | `string` | `""` | | | ||
| `icon` | `union(string\|node)` | | | |
Oops, something went wrong.